import spock.lang.Specification

/**
 * Created at 2017/11/21 12:28
 * @author gongweixin
 */
class ClassExample extends Specification {
    def "测试class对象是否是单例"() {
        expect:
        String.class == "".getClass()
        String.class == "".class
        String.class == Class.forName("java.lang.String")
    }
}
